#include "User.h"

User::User(int id, QString name) :
	id(id),
	name(name)
{

}


User::User(QString data)
{
	QStringList infos = data.split(" ");
	id = infos.at(0).toInt();
	name = infos.at(1);
}

int User::getId()
{
	return id;
}

QString User::getName()
{
	return name;
}

void User::setId(int val)
{
	id = val;
}

void User::setName(QString n)
{
	this->name = n;
}
